export interface ResponseType<p = {}> {
  code: number;
  message: string;
  data: p;
}
export interface ImageProps {
  _id?: string;
  url?: string;
  createdAt?: string;
}
export interface ColumnProps {
  _id?: string;
  title: string;
  avatar?: ImageProps;
  description: string;
  bg?: string;
}
export interface PostProps {
  _id?: string;
  title: string;
  content: string;
  image?: string;
  createdAt?: string;
  column: string;
  excerpt?: string;
}
export interface UserProps {
  isLogin: boolean;
  nickName?: string;
  _id?: number;
  column?: string;
  email?: string;
}
export interface GlobalErrorProps {
  status: boolean;
  message?: string;
}
export interface GlobalDataProps {
  error: GlobalErrorProps;
  token: string;
  isLoading: boolean;
  user: UserProps;
}
export interface TipProps {
  author: string;
  content: string;
}
interface editUserProps {
  nickName: string;
  description: string;
  avatar: string;
}
interface editColumnProps {
  title: string;
  avatar: string;
  description: string;
}
